#!/bin/bash
echo creating trainingset 10
java -jar build/l-tasat.jar create-trainingset --verbose=config,status --size=10 trainingset10.set
echo creating trainingset 100
cp trainingset10.set trainingset100.set
java -jar build/l-tasat.jar create-trainingset --verbose=config,status --size=90 trainingset100.set
echo training classifier knn 10
java -jar build/l-tasat.jar train-classifier --verbose=config,status --classifier=knn --out=classifier10.knn trainingset10.set
echo training classifier knn 100
java -jar build/l-tasat.jar train-classifier --verbose=config,status --classifier=knn --out=classifier100.knn trainingset100.set
echo training classifier dt 10
java -jar build/l-tasat.jar train-classifier --verbose=config,status --classifier=dt --out=classifier10.dt trainingset10.set
echo training classifier dt 100
java -jar build/l-tasat.jar train-classifier --verbose=config,status --classifier=dt --out=classifier100.dt trainingset100.set
echo validating classifier knn 10
java -jar build/l-tasat.jar validate-classifier --verbose=config,status --size=10 classifier10.knn > validation_classifier10.knn.out
echo validating classifier knn 100
java -jar build/l-tasat.jar validate-classifier --verbose=config,status --size=10 classifier100.knn > validation_classifier100.knn.out
echo validating classifier dt 10
java -jar build/l-tasat.jar validate-classifier --verbose=config,status --size=10 classifier10.dt > validation_classifier10.dt.out
echo validating classifier dt 100
java -jar build/l-tasat.jar validate-classifier --verbose=config,status --size=10 classifier100.dt > validation_classifier10.dt.out
echo finished
